package com.example.cdctest.mapper;

import com.example.cdctest.pojo.TestPaper;

import java.util.List;

public interface TestPaperMapper {
    List<TestPaper> selectAllByEmail(String email);

    int deleteByPrimaryKey(Integer id);

    int insert(TestPaper record);

    int insertSelective(TestPaper record);

    //通过考试信息的id，查看该次选中的考试参与人
    List<TestPaper> selectByPrimaryKey(Integer examinationId);

    int updateByPrimaryKeySelective(TestPaper record);

    int updateByPrimaryKey(TestPaper record);

    //根据用户的id,获取用户的所有考试信息
    List<TestPaper> selectUserTestPaper(Integer userId);

    //根据用户的id,获取用户的所有考试信息数量
    Integer selectUserTestPaperCount(Integer userId);
}